#ifndef VSENTITYACTOR_H
#define VSENTITYACTOR_H
#include "VSActor.h"
namespace VSEngine2
{

	class VSGRAPHIC_API VSEntityActor : public VSActor
	{
		//PRIORITY

		//RTTI
		DECLARE_RTTI;
	public:
		VSEntityActor();
		virtual ~VSEntityActor();
		virtual void AddChildActor(VSActor * pActor);
		virtual void DeleteChildActor(VSActor * pActor);
		virtual VSActor * GetChildActor(unsigned int uiActorIndex);
		virtual void DeleteChildActor(unsigned int uiActorIndex);

		DECLARE_INITIAL_NO_CLASS_FACTORY
	protected:
		VSArray<VSPointer<VSActor>> m_ChildActor;
		void AddActorNodeToNode(VSActor * pActor,VSNode * pNode);
	};
	DECLARE_Ptr(VSEntityActor);
	VSTYPE_MARCO(VSEntityActor);
}
#endif